package com.xinqi.common.core.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 登录类型
 *
 * @author dgyu
 */
@Getter
public enum UserUseTypeEnum {

    /**
     * 登录
     */
    LOGIN(0, "登录"),

    /**
     * 进入应用
     */
    JOIN_IN(1, "进入应用"),
    /**
     * 退出应用
     */
    JOIN_OUT(2, "退出应用"),
    /**
     * 退出登录
     */
    LOGIN_OUT(3, "退出登录");

    @Getter(onMethod_ = {@JsonValue})
    private final Integer code;

    @Getter
    private final String describe;

    UserUseTypeEnum(Integer code, String describe) {
        this.code = code;
        this.describe = describe;
    }

}
